//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.0.2723.0
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by wsdl, Version=1.0.2723.0.
// 
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.Web.Services;


public class BarnesAndNoble : System.Web.Services.Protocols.HttpGetClientProtocol {
    
    public BarnesAndNoble() {
        this.Url = "http://shop.barnesandnoble.com";
    }
    
    [System.Web.Services.Protocols.HttpMethodAttribute(typeof(System.Web.Services.Protocols.TextReturnReader), typeof(System.Web.Services.Protocols.UrlParameterWriter))]
    public GetBookDetailsMatches GetBookDetails(string isbn) {
        return ((GetBookDetailsMatches)(this.Invoke("GetBookDetails", (this.Url + "/booksearch/isbnInquiry.asp"), new object[] {isbn})));
    }
    
    public System.IAsyncResult BeginGetBookDetails(string isbn, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("GetBookDetails", (this.Url + "/booksearch/isbnInquiry.asp"), new object[] {isbn}, callback, asyncState);
    }
    
    public GetBookDetailsMatches EndGetBookDetails(System.IAsyncResult asyncResult) {
        return ((GetBookDetailsMatches)(this.EndInvoke(asyncResult)));
    }
}

public class GetBookDetailsMatches {
    
    [System.Web.Services.Protocols.MatchAttribute("size=.-1.>sales rank:.(.*?)</", IgnoreCase=true)]
    public string Rank;
}
